home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Dev
/
misc
/
LOCCounter.readme
< prev
next >
Wrap
Text File
|
2004-09-23
|
1KB
|
30 lines
Short: Simple SLOC counter for C/C++
Author: ssolie@telus.net (Steven Solie)
Uploader: ssolie@telus.net (Steven Solie)
Version: 3.0
Type: dev/misc
Requires: AmigaOS 4.0
This is a simple source lines of code (SLOC) counter for C and C++.
It counts only lines of source code and skips all comments and white
space. The counter is also capable of counting rcsdiff/diff files
and will output the total added and deleted LOC.
The source code is included in the hopes it can serve as an example for
AmigaOS 4.0 programmers. I first wrote this counter in C a long time
ago and it has been adapted over the years to become a C++ program which
is why the design is rather rough. I hope you find it a useful example
of modern C++ coding on AmigaOS nonetheless.
Note this program relies on a couple of C++ Boost libraries to compile.
See http://www.boost.org/ for more details.
loc FILE/M/A,TOTAL/S,DIFF=DIFFERENCE/S,QUICK/S
FILE - one or more source files or patterns
TOTAL - display only the final totals
DIFF - count a difference file output from rcsdiff/diff
QUICK - output only the total to stdout useful for scripting